<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" isELIgnored="false">
<link rel="stylesheet" type="text/css" href="html/assets/css/vendor/management.css">
<link rel="stylesheet" type="text/css" href="html/assets/css/vendor/table.css">

<div class="t_left">
    <div class="l_logo"></div>
    <div class="l_nav">
        <ul>
            <!-- 使用c:if来判断并动态添加active类 -->
            <li ${pageContext.request.requestURI.endsWith("management.jsp") ? "class='active'" : ""}>
                <a href="management.jsp?currentSection=首页">首页</a>
            </li>
            <li ${pageContext.request.requestURI.endsWith("productsList.jsp") ? "class='active'" : ""}>
                <a href="productsList.jsp?currentSection=商品管理">商品管理</a>
            </li>
            <li ${pageContext.request.requestURI.endsWith("orderList.jsp") ? "class='active'" : ""}>
                <a href="orderList.jsp?currentSection=订单管理">订单管理</a>
            </li>
            <!-- 其他导航链接... -->
        </ul>
    </div>
</div>




